package com.tg.dao;



import com.tg.pojo.entity.TgOrder;
import com.tg.pojo.entity.TgOrderDetail;
import com.tg.pojo.entity.TgOrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @Author 王兴
 * @Description
 * @Date 2022/3/28
 */
@Mapper
public interface OrderMapper {

    List<TgOrderVo> findOrderAndOrderDetailsByUserId(@Param("userid") Integer userid, @Param("orderStatus") Integer status);

    int add(TgOrder tgOrder);

    int updateOrderId(TgOrderDetail tgOrderDetail);

    TgOrder findById(String orderId);
}
